<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Insert title here</title>
</head>
<body>
	<fieldset>
		<legend>Lista de Questoes</legend>
	<table border="1">
		<thead>
			<tr>
				<th>ID</th>
				<th>Materia</th>
				<th>Assunto</th>
				<c:if test="${usuarioWeb.logado }">
					<th>Exibir</th>
				</c:if>
			</tr>
		</thead>
		<c:forEach var="questao" items="${questoesList}">
			<tr>
				<td>${questao.id}</td>
				<td>${questao.materia}</td>
				<td>${questao.assunto}</td>
				<c:if test="${usuarioWeb.logado }">
				<td align="center">
						<a href="<c:url value="/questoes/exibe/${questao.id}"/>">Exibir</a>
					</td>
				</c:if>
			</tr>	
		</c:forEach>
	</table>
</fieldset>
</body>
</html>